#ifndef _CHARACTER_H
#define _CHARACTER_H
#include "dxKeyboard.h"
#include "SpriteManager.h"

class CCharacter :
	public CKeyboard
{
protected:
	int _x, _y;
	float _vectorX, _vectorY;
	int Health;
#pragma region DANG

	//vi tri y truoc do
	int _lastY;

#pragma endregion

public:
	CCharacter();
	~CCharacter(void);
	//virtual void LoadResource(LPDIRECT3DDEVICE9 d3ddv, LPD3DXSPRITE &SpriteHandler, HINSTANCE hInstance, HWND hWnd) = 0;
	void SetPosition(int X, int Y);
	void SetVector(float VectorX, float VectorY);
	D3DXVECTOR2 GetPosition();

#pragma region DANG

	//lay van toc
	D3DXVECTOR2 GetVector();

	//lay vi tri y truoc do
	int GetLastY();

#pragma endregion
};

#endif